package com.gun.management.module.raffle.controller.app.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

@Schema(description = "APP -  直充信息 Request VO")
@Data
@ToString(callSuper = true)
public class AppRechargeReqVO extends Object {

   // {"rechargeAccount":"18563965205","accountType":"1"},

    @Schema(description = "直充账号",  requiredMode = Schema.RequiredMode.REQUIRED,   example = "18563965205")
    @JsonProperty("rechargeAccount")
    private String rechargeAccount;

//    @Schema(description = "账户类型",  example = "1")
//    @JsonProperty("accountType")
//    private String accountType;


    @Override
    public String toString() {

        ObjectMapper mapper = new ObjectMapper();
        try {
            return mapper.writeValueAsString(this);
        } catch (
                Exception e) {
            e.printStackTrace();
        }

        return null;
    }


}